package com.itljm.cxrMarket.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 卫生监督检查记录表
 * @TableName hygiene_inspection_records
 */
@TableName(value ="hygiene_inspection_records")
@Data
public class HygieneInspectionRecords implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer merchantId;
    private Integer inspectorId; // 检查员ID
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date inspectionTime; // 检查时间
    private String overallResult; // 总体结果 "合格", "不合格", "待改进"
    private String problemDescription; // 问题描述
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date rectificationDeadline; // 整改期限
    private String inspectionImages; // 检查图片路径，多个用逗号分隔
    private String notes;// 备注信息
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    @TableField(exist = false)
    private String merchantName;
    @TableField(exist = false)
    private String inspectorName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}